/*
 * @Author: zhangyang
 * @Date: 2021-08-26 15:38:03
 * @LastEditTime: 2022-03-01 20:00:36
 * @Description: 注册 mock
 */
export const controllerMap = new Map<string, Young.MockItem>()
export const MockApi = (_path: string): MethodDecorator => {
  return (target, _name, desc) => {
    controllerMap.set(_path, desc.value as any);
  };
};
